#include "factory.h"

#include <iostream>

int main(int argc, char** argv)
{
	AbstractFactory* factory = new FactoryA();
	AbstractProduct* product = factory->CreateProduct();
	product->Operation();
	delete product;
	product = NULL;
	delete factory;
	factory = NULL;
	
	factory = new FactoryB();
	product = factory->CreateProduct();
	product->Operation();
	delete product;
	product = NULL;
	delete factory;
	factory = NULL;
	
	return 0;
}